package com.yanghui.dao;

import com.yanghui.pojo.BlackIp;
import com.yanghui.pojo.BlackIpExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BlackIpMapper {
    long countByExample(BlackIpExample example);

    int deleteByExample(BlackIpExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BlackIp record);

    int insertSelective(BlackIp record);

    List<BlackIp> selectByExample(BlackIpExample example);

    BlackIp selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BlackIp record, @Param("example") BlackIpExample example);

    int updateByExample(@Param("record") BlackIp record, @Param("example") BlackIpExample example);

    int updateByPrimaryKeySelective(BlackIp record);

    int updateByPrimaryKey(BlackIp record);

    /**
     * 按照指定条件查询黑名单
     */
    List<BlackIp> selectLikeBlackIpListByPage(BlackIpExample blackIpExample);
}